package com.cpi.cornpp.purchaseorder.view;

import java.util.List;

import com.cpi.cornpp.biweeks.view.BiWeekPeriodVersionView;
import com.cpi.cornpp.blockdistribution.view.BlockDistributionView;
import com.cpi.cornpp.common.view.IBaseView;
import com.cpi.cornpp.plants.view.PlantView;
import com.cpi.cornpp.setregiondistribution.view.SetRegionDistributionView;
import com.cpi.cornpp.tagdistribution.view.TagDistributionView;
import com.cpi.cornpp.transports.view.TransportView;

public class PurchaseOrderVersionView implements IBaseView {
	private static final long serialVersionUID = 5198359552655397195L;
	private Integer purchaseOrderVersionId;
	private Integer purchaseOrderId;
	private Integer transportId;
	private Integer biWeekPeriodVersionId;
	private Integer plantId;
	private String code;
	private String postFix;
	private Double capacity;
	private String capacityStringValue;
	private PlantView plantView;
	private TransportView transportView;
	private BiWeekPeriodVersionView biWeekPeriodVersionView;
	private List purchaseOrderCostVersions;
	private BlockDistributionView blockDistributionView;
	private TagDistributionView tagDistributionView;
	private SetRegionDistributionView setRegionDistributionView;
	private String cornTypeId;
	private int applyBalance;
	private String periodDescription;
	private String unitPrice;
	private String amount;
	private boolean transit;
	private String futureSort;
	private String originalFutureSort;
	/**
	 * Verifica si el objeto es igual por el Id
	 * @author Edgar Joao
	 */
	public boolean equals(Object argObj) {
		PurchaseOrderVersionView obj = (PurchaseOrderVersionView)argObj;
		return obj.purchaseOrderVersionId == this.purchaseOrderVersionId;
	}
	
	public BlockDistributionView getBlockDistributionView() {
		return blockDistributionView;
	}
	public void setBlockDistributionView(BlockDistributionView blockDistributionView) {
		this.blockDistributionView = blockDistributionView;
	}
	public Integer getPurchaseOrderVersionId() {
		return purchaseOrderVersionId;
	}
	public void setPurchaseOrderVersionId(Integer aPurchaseOrderVersionId) {
		purchaseOrderVersionId = aPurchaseOrderVersionId;
	}
	public Integer getPurchaseOrderId() {
		return purchaseOrderId;
	}
	public void setPurchaseOrderId(Integer aPurchaseOrderId) {
		purchaseOrderId = aPurchaseOrderId;
	}
	public Integer getTransportId() {
		return transportId;
	}
	public void setTransportId(Integer aTransportId) {
		transportId = aTransportId;
	}
	public Integer getBiWeekPeriodVersionId() {
		return biWeekPeriodVersionId;
	}
	public void setBiWeekPeriodVersionId(Integer aBiWeekPeriodVersionId) {
		biWeekPeriodVersionId = aBiWeekPeriodVersionId;
	}
	public Integer getPlantId() {
		return plantId;
	}
	public void setPlantId(Integer aPlantId) {
		plantId = aPlantId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String aCode) {
		code = aCode;
	}
	public Double getCapacity() {
		return capacity;
	}
	public void setCapacity(Double aCapacity) {
		capacity = aCapacity;
	}
	public TransportView getTransportView() {
		return transportView;
	}
	public void setTransportView(TransportView aTransportView) {
		transportView = aTransportView;
	}
	public PlantView getPlantView() {
		return plantView;
	}
	public void setPlantView(PlantView aPlantView) {
		plantView = aPlantView;
	}
	public BiWeekPeriodVersionView getBiWeekPeriodVersionView() {
		return biWeekPeriodVersionView;
	}
	public void setBiWeekPeriodVersionView(
			BiWeekPeriodVersionView aBiWeekPeriodVersionView) {
		biWeekPeriodVersionView = aBiWeekPeriodVersionView;
	}
	public List getPurchaseOrderCostVersions() {
		return purchaseOrderCostVersions;
	}
	public void setPurchaseOrderCostVersions(List aPurchaseOrderCostVersions) {
		purchaseOrderCostVersions = aPurchaseOrderCostVersions;
	}
	public void setTagDistributionView(TagDistributionView tagDistributionView) {
		this.tagDistributionView = tagDistributionView;
	}
	public TagDistributionView getTagDistributionView() {
		return tagDistributionView;
	}
	public void setSetRegionDistributionView(SetRegionDistributionView setRegionDistributionView) {
		this.setRegionDistributionView = setRegionDistributionView;
	}
	public SetRegionDistributionView getSetRegionDistributionView() {
		return setRegionDistributionView;
	}
	public String getPostFix() {
		return postFix;
	}
	public void setPostFix(String postFix) {
		this.postFix = postFix;
	}
	public String getCornTypeId() {
		return cornTypeId;
	}
	public void setCornTypeId(String cornTypeId) {
		this.cornTypeId = cornTypeId;
	}
	public void setApplyBalance(int applyBalance) {
		this.applyBalance = applyBalance;
	}
	public int getApplyBalance() {
		return applyBalance;
	}
	public String getPeriodDescription() {
		return periodDescription;
	}
	public void setPeriodDescription(String argPeriodDescription) {
		periodDescription = argPeriodDescription;
	}
	public String getUnitPrice() {
		return unitPrice;
	}
	public void setUnitPrice(String argUnitPrice) {
		unitPrice = argUnitPrice;
	}
	public String getCapacityStringValue() {
		return capacityStringValue;
	}
	public void setCapacityStringValue(String argCapacityStringValue) {
		capacityStringValue = argCapacityStringValue;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String argAmount) {
		amount = argAmount;
	}
	public void setTransit(boolean transit) {
		this.transit = transit;
	}
	public boolean isTransit() {
		return transit;
	}

	public void setFutureSort(String futureSort) {
		this.futureSort = futureSort;
	}

	public String getFutureSort() {
		return futureSort;
	}	
	
	public String getOriginalFutureSort() {
		return originalFutureSort;
	}

	public void setOriginalFutureSort(String originalFutureSort) {
		this.originalFutureSort = originalFutureSort;
	}
}